home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 22 / 2 / DISK2220.ZIP / SCREDIT2.EXE / WINDOWS.H < prev   
C/C++ Source or Header  |  1990-12-26  |  3KB  |  67 lines

  1. /*
  2. *----------------------------------------------------------------*
  3. *       Window.H - "Pop Up" Windows Module Interface Header      *
  4. *                                                                *
  5. *               <C>opyright 1989,1990 by iHn Systems             *
  6. *                         P.O. Box 4436                          *
  7. *                    Pocatello, Idaho 83205-4436                 *
  8. *                                                                *
  9. *----------------------------------------------------------------*/
  10. #ifdef __TINY__ or __SMALL__
  11.    #error "TINY and SMALL memory models is are not supported";
  12. #endif
  13.  
  14. #define MAXWINDOW 60
  15.  
  16. enum StatusType  {Closed=0,Open=1,Hide=2};
  17. enum wscrolltype {W_OFF=0,W_UP=1,W_DOWN=2};
  18.  
  19. typedef struct {
  20.        enum          StatusType Status;
  21.        int           Handel;
  22.        char          Name[81];
  23.        char          Order,
  24.                      Row,
  25.                      Col,
  26.                      Len,
  27.                      Lines,
  28.                      Border,
  29.                      TextBg,
  30.                      TextFg;
  31.        int           CursorX,
  32.                      CursorY;
  33.    #ifndef __MEDIUM__
  34.        void far      *StackAddr2;
  35.    #else
  36.        void          *StackAddr2;
  37.    #endif
  38.        int           StackLen;
  39.        } WindowsType;
  40.  
  41. extern WindowsType       windary[MAXWINDOW];
  42. extern int               wtable [MAXWINDOW];
  43. extern int  userwindow;
  44.  
  45. int  windowsinit        (void);
  46. void windowsend         (void);
  47. void changewindow       (char *,int,int,int,int,char*,
  48.                          int,int,int,char*,
  49.                          int,int,int,int,int);
  50. int  definewindow       (int,int,int,int,int,int,int,char*,
  51.                          int,int,int,char*,
  52.                          int,int,int,int,int);
  53. void popwindow          (char *,int);
  54. int  pushwindow         (char *,int,int);
  55. void clearwindow        (char *,int,int,int);
  56. void writewindowline    (char *,int,int,int,int,int,int,char*);
  57. char *readwindowline    (char *,int,int);
  58. char *readwindowfield   (char *,int,int,int,int,int,int,int,char*);
  59. void writewindowfield   (char *,int,int,int,int,int,int,int,int,int,char*);
  60. void erasewindow        (char *,int);
  61. void movewindow         (char *,int,int,int,char);
  62. void shutwindow         (char *,int);
  63. void savewindow         (void);
  64. void openwindow         (char *,int);
  65. void chgwindowbackground(char *Sc,int Length);
  66. void pausewindowupdates (unsigned char);
  67.